//下拉菜单
function dorpDown(obj){
    let liHeight = obj.offsetHeight;
    console.log(liHeight);
    let listNum = obj.getElementsByClassName('list-child').length;
    console.log(listNum);
    if (liHeight == 50){
        obj.style.height = (listNum+1)*50 +'px';
        obj.getElementsByClassName('list-child-box')[0].style.display = 'block';
        $('.bar-list-icon2').removeClass('glyphicon-chevron-down');
        $('.bar-list-icon2').addClass('glyphicon-chevron-up');
    }
    else {
        obj.style.height = 50 +'px';
        obj.getElementsByClassName('list-child-box')[0].style.display = 'none';
        $('.bar-list-icon2').removeClass('glyphicon-chevron-up');
        $('.bar-list-icon2').addClass('glyphicon-chevron-down');
    }
}
//注销登录
function logout(){
    window.location.replace('pages/login.html');
    localStorage.clear();
}